package com.bgs.microservices.service.common.util;

import org.springframework.beans.BeanUtils;

/**
 * @auther zcy
 * @data 2020/6/3 13:07
 */
public class BeanCopyUtils {

    public static void copy(Object source, Object target) {
        if (ObjectUtils.isNotEmpty(source)) {
//            BeanCopier copier = BeanCopier.create(source.getClass(), target.getClass(), false);
//            copier.copy(source, target, null);
            BeanUtils.copyProperties(source,target);
        }
    }
}
